﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using FrameWork.Source.Object_Classes;
using Microsoft.Xna.Framework;

namespace Boomer.Source.Effect
{
    class CEffect : CAnimatedObject
    {

        public CEffect()
            : base()
        {

        }

        public override void init()
        {
            base.init();
        }

        public void createEffect(Rectangle pos)
        {
            Point midPos = pos.Center;
            int halfWidth = this.getBoundBox().Width / 2;
            int halfHeight = this.getBoundBox().Height / 2;

            float posX = midPos.X - halfWidth;
            float posY = midPos.Y - halfHeight - 10;

            this.m_vec2Position = new Vector2(posX, posY);
        }

        public override void update(float deltaTime)
        {
            base.update(deltaTime);
        }

        public override void draw()
        {
            base.draw();
        }
    }
}
